<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="author" content="Luka Cvrk (www.solucija.com)" />
	<link rel="stylesheet" href="image_css/style.css" type="text/css" />
	<script src="js/jquery_last.js" type="text/javascript"></script>
	<link type="text/css" rel="stylesheet" href="image_css/validatorAuto.css" />
	<script src="js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
	<script type="text/javascript">
		$(document)
			.ready(
					function() {
						$.formValidator.initConfig( {
							autotip :true,
							onerror : function(msg) {
								alert(msg)
							}
						});
						$("#usersname").formValidator( {
							onshow :"请输入用户名",
							onfocus :"最多16个字符",
							oncorrect :"该用户名可以注册"
						}).inputValidator( {
							min :1,
							max :16,
							onerror :"你输入的用户名非法,请确认"
						});
						$("#userspassword").formValidator( {
							onshow :"请输入密码",
							onfocus :"密码不能为空",
							oncorrect :"密码合法"
						}).inputValidator( {
							min :1,
							onerror :"密码不能为空,请确认"
						});
						$("#password2").formValidator( {
							onshow :"请输入重复密码",
							onfocus :"两次密码必须一致哦",
							oncorrect :"密码一致"
						}).inputValidator( {
							min :1,
							onerror :"重复密码不能为空,请确认"
						}).compareValidator( {
							desid :"password1",
							operateor :"=",
							onerror :"2次密码不一致,请确认"
						});
						$("#usersemail")
								.formValidator( {
									onshow :"请输入邮箱",
									onfocus :"要填合法邮箱便于查收信息",
									oncorrect :"恭喜你,你输对了",
								})
								.inputValidator( {
									min :1,
									max :100,
									onerror :"你输入的邮箱长度非法,请确认"
								})
								.regexValidator(
										{
											regexp :"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",
											onerror :"你输入的邮箱格式不正确"
										});});
	
	</script>
	<title>找工作</title>
</head>
<body>
<div id="content">
		<div id="header">
			<p id="top_info"> <a href="#">登录</a> | <a href="#">注册</a>.<br />
		    .</p>
			
			<div id="logo">
				<h1><a href="#" title="Centralized Internet Content">找<span class="title"><font color="#FF0000">工作</font></span></a></h1>
				<p>欢迎来找工作</p>
			</div>
		</div>
					
		<div id="tabs">
			<ul>	
				<li></li>
				<li><a class="current" href="enter.action" accesskey="v"><span class="key">首页</span></a></li>
				<li><a href="showusers.action" accesskey="r"><span class="key">帐户</span>管理</a></li>
				<li><a href="showcity.action" accesskey="i"><span class="key">地区</span>管理</a></li>
				<li><a href="showstatus.action" accesskey="d"><span class="key">学位</span>管理</a></li>
				<li><a href="showfunction.action" accesskey="a"><span class="key">权限</span>管理</a></li>
				<li><a href="#" accesskey="a"><span class="key">关于我们</span></a></li>
			</ul>
			<div id="search">
				<form method="post" action="search.action">
					<p>职位搜索
					  <input type="text" name="keyword" class="search" /> <input type="submit" value="Search" class="button" /></p>
				</form>
			</div>
		</div>
					
		<div class="gboxtop"></div>
		<div class="gbox">
			<p><a href="#">Lorem ipsum dolor</a> sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. Ut wisi enim ad minim veniam, quis nostrud <a href="#">exerci tation</a> ullamcorper suscipit lobortis nisl ut aliquip ex.</p>
		</div>
		
		<div class="left">
			<div class="left_articles">
				<div class="buttons"><p><a href="showusers.action" class="bluebtn">查看</a> <a href="enter.action" class="greenbtn">返回</a></p></div>
				<div class="calendar"><p>NOV<br/>13th</p></div>
				<h2>用户信息显示</h2>
				<hr/><br/>
				<c:forEach items="${usersList}" var="users" varStatus="status">
					<p>用户名：${users.userName}</p>
					<p>密码：${users.userPassword}</p>
					<p>注册邮箱：${users.userEmail}</p>
					<p><a href="deleteusers.action?userid=${users.id}"
					onclick="return confirm('您确定要删除此记录吗?')">删除</a>||
					<a href="updateusers.action?userid=${users.id}">修改</a></p>
					<hr/>
				</c:forEach>
				  第${paginationUsers.no}页 ---共${paginationUsers.pageSum}页
				 <a href="showusers.action?paginationUsers.no=1">首页</a>
				 <s:if test="paginationUsers.isPrevious()">
				 <a href="showusers.action?paginationUsers.no=${paginationUsers.no-1}"> << </a>
				 </s:if>
				 <s:if test="paginationUsers.isNext()">
				 <a href="showusers.action?paginationUsers.no=${paginationUsers.no+1}"> >> </a>
				 </s:if>
				 <a href="showusers.action?paginationUsers.no=${paginationUsers.pageSum}">末页</a>
				 <form action="showusers.action" method='post'>
					<input type="text" name = "paginationUsers.no" />
					<input type="submit" value="跳转"/>
				</form>
		  </div>
					
			</div>
		<div id="right">
			<div class="boxtop"></div>
			<div class="box">
				<p><img src="image_css/images/image.gif" alt="Image" title="Image" class="image" /><br/><b><h2>创建新的用户</h2></b><br /></p>
				<hr/>
				<s:form action="createusers" enctype="multipart/form-data" method="POST">
					<s:textfield label="姓名(N)" id="usersname" name="users.userName" tooltip="请输入姓名" cssClass="redField"
						accesskey="N" cssStyle="color: red;" />
					<s:password label="密码(p)" id="userspassword" name="users.userPassword" tooltip="请输入密码" cssClass="redField"
						accesskey="P" cssStyle="color: red;" />
					<s:textfield label="邮箱(E)" id="usersemail" name="users.userEmail" tooltip="请输入邮箱" cssClass="redField"
						accesskey="E" cssStyle="color: red;" />
					<s:select tooltip="请选择用户类型" label="级别" list="groupsList"
							        listKey="id" listValue="groupName" name="groups.id" emptyOption="true" />
					<s:hidden name="users.id"></s:hidden>
					<p><s:submit value="提交(S)" accesskey="S" />
					<s:reset value="重置" /></p>
				</s:form>		
			</div>
			
			<div class="boxtop"></div>
			<div class="box">
				<p><img src="image_css/images/image.gif" alt="Image" title="Image" class="image" /><b>Lorem ipsum dolor sit amet</b><br />consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis.<br /></p>
				<div class="buttons"><p><a href="#" class="bluebtn">Read</a> <a href="#" class="greenbtn">Mark</a></p></div>
			</div>
		</div>	
		<div class="footer">
			<p><a href="#">RSS Feed</a> &middot; <a href="#">Most Popular</a> &middot; <a href="#">Today's Favorites</a> &middot; <a href="#">All Time Favorites</a> &middot; <a href="#">Sharing Policy</a> &middot; <a href="http://www.solucija.com/home/commercial-templates/" title="Professional CSS Templates">Professional CSS Templates</a> &middot; <a href="http://www.ni5ni6.com">Ni5Ni6</a> &middot; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> and <a href="http://validator.w3.org/check?uri=referer">XHTML</a><br />
			&copy; Copyright 2006 Internet Sharing, Design: Luka Cvrk - <a href="http://www.solucija.com/" title="Information Architecture and Web Design">Solucija</a></p>
		</div>
	</div>
</body>
</html>